﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Diagnostics;

namespace QLSVPT1h
{
    public partial class Login_Form : Form
    {
        public Login_Form()
        {
            InitializeComponent();
        }

        private void lb_quenpass_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            MessageBox.Show("Liên hệ email : thachngantung@gmail.com để lấy lại mật khẩu", "Quên mật khẩu",MessageBoxButtons.OK);
        }

        private void bt_login_Click(object sender, EventArgs e)
        {
            if ((txt_username.Text == "qlhspt1h") && (txt_pass.Text == "12345"))
            {
                Homepage_Form homepage_form = new Homepage_Form();
                this.Visible = false;
                homepage_form.Show();
                
            }
            else
            {
                MessageBox.Show("Sai mật khẩu hoặc username, Vui lòng nhập lại !", "Sai mật khẩu");
            }
        }

        private void Login_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process p = new Process();
            p.StartInfo.FileName = "iexplore.exe";
            p.StartInfo.Arguments = "http://www.qlhs.freevnn.com/webhuongdan";
            p.Start();
        }

       

       

 
        
    }
}
